import api from '@/api/index.ts'

// 获取顾客券包券列表
export function GetData(params: any) {
  return api.get('/api/subscribercouponpackage/list', { params })
}

// 获取顾客券包券列表
export function GetStatisticisData(data: any) {
  return api.get('/api/subscribercouponpackage/statisticis', { params: data })
}

// 作废卡券
export function patchMarkedDelivery(params: any) {
  return api.patch(`/api/subscribercouponpackage/modifystatus`, params)
}

// 发放卡券
export function PostSendcoupon(params: any) {
  return api.post('/api/subscribercouponpackage/sendcoupon', params)
}

// 批量更新卡券过期时间
export function PostUpdateTime(params: any) {
  return api.post('/api/subscribercouponpackage/modifymulticouponexpiredtime', params)
}
// 获取券发送记录excel
export function GetExcelData(params: any) {
  return api.get('/api/subscribercouponpackage/sentrecordexcel', { params, responseType: 'blob' })
}
